
<?php

include '../Controller/danhdeController.php';
$controller = new danhdeController();

$action = (isset($_POST['action']) == NULL) ? '' : $_POST['action'];

if ($action == 'LOADREGION') {
    $controller->getListChooseRegion();
} else if ($action == 'LOADTHREAD') {
    $controller->getListThread();
} else if ($action == 'LOADCHOIDE') {
    $controller->getListChoiDe();
} else if ($action == 'HANDLEBET')
    $controller->handleBet();